<script type="text/javascript">
//页面加载时执行
$(function(){
	$.get("applicationSingle/getCardInfo",function(data){
		var content="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.certificates.length;i++){
				content+="<option value="+item.certificates[i].certificateType+">"
				+item.certificates[i].certificatesName+"</option>"
			}
			$("#agentPapertypeByUnloss").html(content);
		});
	},"json");
	
	$.post("relieveLoss/getUnlossInfo",function(json){
		 if(json.statusCode==DWZ.statusCode.error){
				navTabAjaxDone(json)
		}else{
			var content="";
			var i;
			$(json).each(function(n,item){
				$("input[name='citizenCardNo']",navTab.getCurrentPanel()).val(item.lci.citizenCardNo);
				$("input[name='cardPName']",navTab.getCurrentPanel()).val(item.lci.cardPName);
				$("input[name='customerName']",navTab.getCurrentPanel()).val(item.lci.customerName);
				$("input[name='paperTypeName']",navTab.getCurrentPanel()).val(item.lci.paperTypeName);
				$("input[name='paperNo']",navTab.getCurrentPanel()).val(item.lci.paperNo);
				
			});
		}
		 
	},"json");

});
</script>
<div class="pageContent">
	<form method="post" action="relieveLoss/commitUnloosCardInfo" class="pageForm required-validate" onsubmit="return validateCallback(this,printViewPageAjaxDone);">
		<div class="pageFormContent" >
			<fieldset>
			<legend>基本信息</legend>
			<p>
				<label>卡产品：</label>
				<input  name="cardPName" type="text" value="" readonly="readonly" size="30">
			</p>
			<p>
				<label>市民卡号：</label>
				<input  name="citizenCardNo" type="text" size="30" readonly="readonly"/>
			</P>
			<p>
				<label>姓名：</label>
				<input  name="customerName" type="text" size="30" readonly="readonly"/>			
			</P>
			<p>
				<label>证件类型：</label>
				<input  name="paperTypeName" type="text" size="30" readonly="readonly"/>			
			</P>
			<p>
				<label>证件号码：</label>
				<input  name="paperNo" type="text" size="30" readonly="readonly"/>			
			</P>
			 <p>
				<label>解挂原因：</label>
				<input  name="unbingCardReason" type="text" size="30" maxlength="30"/>
			</P>
			</fieldset> 
			<fieldset>
			<legend>代理人信息</legend>
			<p>
				<label>代理人姓名：</label>
				<input name="agentName" type="text" size="30" class="validName"/>			
			</P>
			<p>
				<label>代理人证件类型：</label>
				<select flag="paperCode" id="agentPapertypeByUnloss" name="agentPapertype" >
					
				</select>
			</p>
			<p>
				<label>代理人证件号码：</label>
				<input  name="agentPaperNo" type="text" class="validIdentity" size="30" />			
			</P>
			<p>
				<label>代理人手机号码：</label>
				<input  name="agentPhone" class="validMobile" type="text" size="30" />			
			</P>
			<p>
				<label>备注：</label>
				<input  name="desc" type="text" size="30" maxlength="30"/>			
			</P>
			</fieldset>			
		</div>
		<div class="formBar">
			<ul> 
			    <li>
				<div class="buttonActive"><div class="buttonContent"><button id="submit" type="submit" class="valid">提交</button></div></div>
				</li>
				<li>
				<a class="buttonActive" href="relieveLoss/queryUnlossCard" target="navTab" rel="unLoosCard" title="解挂"><span>返回</span></a>
				</li>
			</ul>
		</div>
	</form>
</div>




